import React from "react";
import ReactDOM from "react-dom";
import Login from "./Login";

export function loginRender(optProps = {}) {
	let $Login = document.getElementById("login");
	if (!$Login) {
		$Login = document.createElement("div");
		$Login.setAttribute("id", "login");
		document.body.appendChild($Login);
	}
	ReactDOM.render(<Login {...optProps} />, $Login);
}
